<div id="posts_list">
<!-- Star of Main -->
<div class="main mt10" >
    <!-- Star of area2s -->
    <div class="area2s">
    	<!-- Star of Col1 -->
    	<div class="col1">
			<div class="breadCrumb">
				<div class="fl"><span class="cRed fb">当前位置：</span>&nbsp;<a href="<?php echo CHtml::normalizeUrl(array('/')); ?>">首页</a>&nbsp;&rsaquo;&nbsp;<strong><?php echo $categoryName; ?></strong></div>
            </div>    
            <div class="artBody"><!--Start of artBody-->
                <?php foreach($category->getChildren() as $k => $subCategory) : ?>
                <?php if(sizeof($posts[$k]['rows']) > 0) : ?>
	            <div class="artSort">
	                    <div class="title"><span class="artSort-h3"><strong><?php echo $posts[$k]['rows'][0]->categories[0]->terms->name; ?></strong></span><span class="more fr"><a href="<?php echo CHtml::normalizeUrl(array('/category/view', 'id' => $posts[$k]['rows'][0]->categories[0]->termTaxonomyId)); ?>" title="<?php echo $posts[$k]['rows'][0]->categories[0]->terms->name; ?>">更多&gt;&gt;</a></span></div>
	                    <div class="content">
	                    	<div class="headlines">
	                        	<?php if(isset($posts[$k]['meta']->categoryPic) && $posts[$k]['meta']->topPost->post !== null) : ?><div class="headlines-img"><?php echo CHtml::link(CHtml::image(TermsTaxonomyMeta::categoryPicUrl($posts[$k]['meta']->categoryPic->metaValue, 'L')), $posts[$k]['meta']->topPost->post->getRewrittenUrl(), array('title' => $posts[$k]['meta']->topPost->post->postTitle)); ?></div><?php endif; ?>
	                            <?php if(isset($posts[$k]['meta']->topPost) && $posts[$k]['meta']->topPost->post !== null) : ?><div class="headlines-title"><?php echo CHtml::link(truncStr($posts[$k]['meta']->topPost->post->postTitle, 27, '...'), $posts[$k]['meta']->topPost->post->getRewrittenUrl(), array('title' => $posts[$k]['meta']->topPost->post->postTitle)); ?></div><?php endif ?>
                                <?php if(isset($posts[$k]['meta']->topPost) && $posts[$k]['meta']->topPost->post !== null) : ?><div class="headlines-content cHui"><?php echo truncStr(strip_tags($posts[$k]['meta']->topPost->post->postContent), 210, '...'); ?></div><?php endif ?>
	                        </div>
	                        <ul class="artSort-item">
                        	<?php foreach($posts[$k]['rows'] as $k => $post) : ?>
	                        	<li><?php echo CHtml::link(truncStr($post->postTitle, 72), $post->getRewrittenUrl(), array('title' => $post->postTitle))?><span class="artSort-date tr" >[<?php echo date('Y-n-d', $post->postDate); ?>]</span></li>
                            <?php endforeach; ?>
	                        </ul>
                            
	                        <div class="cb"></div>
						</div>
	                </div>
                <?php endif ?>
	            <?php endforeach; ?>
            </div> 
            
            
            <!--End of artBody-->
        </div>
        <!-- End of Col1 -->
        <!-- Star of Col2 -->
        <div class="col2">
  		<?php $this->widget('SearchBox') ?>
    	<?php $this->widget('MustKnow'); ?>
			<div class="smallAd mt10"><?php echo CHtml::image(Yii::app()->baseUrl.'/images/a-exp1.png', '慧苑心理咨询专注于解决婚姻家庭亲子问题', array('title' => '慧苑心理咨询专注于解决婚姻家庭亲子问题')); ?></div>
<!--            <div class="boxA relaArt mt10">-->
<!--                <div class="boxAtop">-->
<!--                	<div class="boxAt1"><div class="boxAt2"><div class="boxAt3"><h3>相关文章</h3></div></div></div>-->
<!--                </div>-->
<!--                <div class="boxAmiddle">-->
<!--                    <ul>-->
<!--                        <li><a href="#">婚姻的五种毒药</a></li>-->
<!--                        <li><a href="#">男人性爱时最怕哪四种女人？</a></li>-->
<!--                        <li><a href="#">夫妻常见谎言心理分析</a></li>-->
<!--                        <li><a href="#">男人婚后都有“丑妻”心理</a></li>-->
<!--                        <li><a href="#">男人对女人是有所期待的</a></li>-->
<!--                        <li><a href="#">婚姻的五种毒药</a></li>-->
<!--                        <li><a href="#">男人性爱时最怕哪四种女人？</a></li>-->
<!--                        <li><a href="#">夫妻常见谎言心理分析</a></li>-->
<!--                        <li><a href="#">男人婚后都有“丑妻”心理</a></li>-->
<!--                        <li id="styleNone"><a href="#">男人对女人是有所期待的</a></li>-->
<!--                    </ul>-->
<!--                </div>-->
<!--                <div class="boxAbottom">-->
<!--                	<div class="boxAb1"><div class="boxAb2"><div class="boxAb3"></div></div></div>-->
<!--                </div>-->
<!--            </div>-->
			<?php if(count($category->getChildren()) > 2) : ?>
            <?php $this->widget('HotThreads') ?>
            <?php endif ?>
				<div class="smallAd mt10"><?php echo CHtml::image(Yii::app()->baseUrl.'/images/a-exp2.png', '慧苑心理咨询专注于解决婚姻家庭亲子问题', array('title' => '慧苑心理咨询专注于解决婚姻家庭亲子问题')); ?></div>
			<?php $this->widget('LatestPosts') ?>
<!--            <div class="boxA relaPsyTest mt10">-->
<!--                <div class="boxAtop">-->
<!--                	<div class="boxAt1"><div class="boxAt2"><div class="boxAt3"><h3>相关心理测试</h3></div></div></div>-->
<!--                </div>-->
<!--                <div class="boxAmiddle">-->
<!--                    <ul>-->
<!--                        <li><a href="#">婚姻的五种毒药</a></li>-->
<!--                        <li><a href="#">男人性爱时最怕哪四种女人？</a></li>-->
<!--                        <li><a href="#">夫妻常见谎言心理分析</a></li>-->
<!--                        <li><a href="#">男人婚后都有“丑妻”心理</a></li>-->
<!--                        <li><a href="#">男人对女人是有所期待的</a></li>-->
<!--                        <li><a href="#">婚姻的五种毒药</a></li>-->
<!--                        <li><a href="#">男人性爱时最怕哪四种女人？</a></li>-->
<!--                        <li><a href="#">夫妻常见谎言心理分析</a></li>-->
<!--                        <li><a href="#">男人婚后都有“丑妻”心理</a></li>-->
<!--                        <li id="styleNone"><a href="#">男人对女人是有所期待的</a></li>-->
<!--                    </ul>-->
<!--                </div>-->
<!--                <div class="boxAbottom">-->
<!--                	<div class="boxAb1"><div class="boxAb2"><div class="boxAb3"></div></div></div>-->
<!--                </div>-->
<!--            </div>-->
        </div>
        <!-- End of Col2 -->
    </div><!-- End of area3s -->
</div>
<!-- End of Main -->
</div>
